
public class Code053 {
	public static void main(String[]args){
		int i=0;
		int sum=0;
		while(i<=50){
			sum=sum+i;
			i=i+7;	
		}
		System.out.println(sum);
	}

}
